package com.atguigu.system.service;

import com.atguigu.system.model.entity.Spu;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author atguigu
 * @since 2025-03-01
 */
public interface SpuService extends IService<Spu> {

    boolean saveSpu(Spu bizSpu);
    boolean removeSpuById(Integer id);
    boolean updateSpu(Spu bizSpu);
    Spu getSpuById(Integer id);
    List<Spu> listAllSpus();

    Page<Spu> pageSpusByName(Page<Spu> page, String spuName);

    Spu selectByID(Integer objectId);

    List<Map<String, Object>> getCascaderOptions();
}
